package model;

public abstract class Nameable {
	private final String name;

	public Nameable(final String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@Override
	public String toString(){
		return this.getName().isEmpty() ? Integer.toHexString(hashCode()) : this.getName();
	}
}
